package com.chenxingnet.dto;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class AuthroleExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AuthroleExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAuthroleidIsNull() {
            addCriterion("AuthRoleID is null");
            return (Criteria) this;
        }

        public Criteria andAuthroleidIsNotNull() {
            addCriterion("AuthRoleID is not null");
            return (Criteria) this;
        }

        public Criteria andAuthroleidEqualTo(Integer value) {
            addCriterion("AuthRoleID =", value, "authroleid");
            return (Criteria) this;
        }

        public Criteria andAuthroleidNotEqualTo(Integer value) {
            addCriterion("AuthRoleID <>", value, "authroleid");
            return (Criteria) this;
        }

        public Criteria andAuthroleidGreaterThan(Integer value) {
            addCriterion("AuthRoleID >", value, "authroleid");
            return (Criteria) this;
        }

        public Criteria andAuthroleidGreaterThanOrEqualTo(Integer value) {
            addCriterion("AuthRoleID >=", value, "authroleid");
            return (Criteria) this;
        }

        public Criteria andAuthroleidLessThan(Integer value) {
            addCriterion("AuthRoleID <", value, "authroleid");
            return (Criteria) this;
        }

        public Criteria andAuthroleidLessThanOrEqualTo(Integer value) {
            addCriterion("AuthRoleID <=", value, "authroleid");
            return (Criteria) this;
        }

        public Criteria andAuthroleidIn(List<Integer> values) {
            addCriterion("AuthRoleID in", values, "authroleid");
            return (Criteria) this;
        }

        public Criteria andAuthroleidNotIn(List<Integer> values) {
            addCriterion("AuthRoleID not in", values, "authroleid");
            return (Criteria) this;
        }

        public Criteria andAuthroleidBetween(Integer value1, Integer value2) {
            addCriterion("AuthRoleID between", value1, value2, "authroleid");
            return (Criteria) this;
        }

        public Criteria andAuthroleidNotBetween(Integer value1, Integer value2) {
            addCriterion("AuthRoleID not between", value1, value2, "authroleid");
            return (Criteria) this;
        }

        public Criteria andAuthidIsNull() {
            addCriterion("AuthID is null");
            return (Criteria) this;
        }

        public Criteria andAuthidIsNotNull() {
            addCriterion("AuthID is not null");
            return (Criteria) this;
        }

        public Criteria andAuthidEqualTo(Integer value) {
            addCriterion("AuthID =", value, "authid");
            return (Criteria) this;
        }

        public Criteria andAuthidNotEqualTo(Integer value) {
            addCriterion("AuthID <>", value, "authid");
            return (Criteria) this;
        }

        public Criteria andAuthidGreaterThan(Integer value) {
            addCriterion("AuthID >", value, "authid");
            return (Criteria) this;
        }

        public Criteria andAuthidGreaterThanOrEqualTo(Integer value) {
            addCriterion("AuthID >=", value, "authid");
            return (Criteria) this;
        }

        public Criteria andAuthidLessThan(Integer value) {
            addCriterion("AuthID <", value, "authid");
            return (Criteria) this;
        }

        public Criteria andAuthidLessThanOrEqualTo(Integer value) {
            addCriterion("AuthID <=", value, "authid");
            return (Criteria) this;
        }

        public Criteria andAuthidIn(List<Integer> values) {
            addCriterion("AuthID in", values, "authid");
            return (Criteria) this;
        }

        public Criteria andAuthidNotIn(List<Integer> values) {
            addCriterion("AuthID not in", values, "authid");
            return (Criteria) this;
        }

        public Criteria andAuthidBetween(Integer value1, Integer value2) {
            addCriterion("AuthID between", value1, value2, "authid");
            return (Criteria) this;
        }

        public Criteria andAuthidNotBetween(Integer value1, Integer value2) {
            addCriterion("AuthID not between", value1, value2, "authid");
            return (Criteria) this;
        }

        public Criteria andRoleidIsNull() {
            addCriterion("RoleID is null");
            return (Criteria) this;
        }

        public Criteria andRoleidIsNotNull() {
            addCriterion("RoleID is not null");
            return (Criteria) this;
        }

        public Criteria andRoleidEqualTo(Integer value) {
            addCriterion("RoleID =", value, "roleid");
            return (Criteria) this;
        }

        public Criteria andRoleidNotEqualTo(Integer value) {
            addCriterion("RoleID <>", value, "roleid");
            return (Criteria) this;
        }

        public Criteria andRoleidGreaterThan(Integer value) {
            addCriterion("RoleID >", value, "roleid");
            return (Criteria) this;
        }

        public Criteria andRoleidGreaterThanOrEqualTo(Integer value) {
            addCriterion("RoleID >=", value, "roleid");
            return (Criteria) this;
        }

        public Criteria andRoleidLessThan(Integer value) {
            addCriterion("RoleID <", value, "roleid");
            return (Criteria) this;
        }

        public Criteria andRoleidLessThanOrEqualTo(Integer value) {
            addCriterion("RoleID <=", value, "roleid");
            return (Criteria) this;
        }

        public Criteria andRoleidIn(List<Integer> values) {
            addCriterion("RoleID in", values, "roleid");
            return (Criteria) this;
        }

        public Criteria andRoleidNotIn(List<Integer> values) {
            addCriterion("RoleID not in", values, "roleid");
            return (Criteria) this;
        }

        public Criteria andRoleidBetween(Integer value1, Integer value2) {
            addCriterion("RoleID between", value1, value2, "roleid");
            return (Criteria) this;
        }

        public Criteria andRoleidNotBetween(Integer value1, Integer value2) {
            addCriterion("RoleID not between", value1, value2, "roleid");
            return (Criteria) this;
        }

        public Criteria andAuthroledateIsNull() {
            addCriterion("AuthRoleDate is null");
            return (Criteria) this;
        }

        public Criteria andAuthroledateIsNotNull() {
            addCriterion("AuthRoleDate is not null");
            return (Criteria) this;
        }

        public Criteria andAuthroledateEqualTo(Date value) {
            addCriterion("AuthRoleDate =", value, "authroledate");
            return (Criteria) this;
        }

        public Criteria andAuthroledateNotEqualTo(Date value) {
            addCriterion("AuthRoleDate <>", value, "authroledate");
            return (Criteria) this;
        }

        public Criteria andAuthroledateGreaterThan(Date value) {
            addCriterion("AuthRoleDate >", value, "authroledate");
            return (Criteria) this;
        }

        public Criteria andAuthroledateGreaterThanOrEqualTo(Date value) {
            addCriterion("AuthRoleDate >=", value, "authroledate");
            return (Criteria) this;
        }

        public Criteria andAuthroledateLessThan(Date value) {
            addCriterion("AuthRoleDate <", value, "authroledate");
            return (Criteria) this;
        }

        public Criteria andAuthroledateLessThanOrEqualTo(Date value) {
            addCriterion("AuthRoleDate <=", value, "authroledate");
            return (Criteria) this;
        }

        public Criteria andAuthroledateIn(List<Date> values) {
            addCriterion("AuthRoleDate in", values, "authroledate");
            return (Criteria) this;
        }

        public Criteria andAuthroledateNotIn(List<Date> values) {
            addCriterion("AuthRoleDate not in", values, "authroledate");
            return (Criteria) this;
        }

        public Criteria andAuthroledateBetween(Date value1, Date value2) {
            addCriterion("AuthRoleDate between", value1, value2, "authroledate");
            return (Criteria) this;
        }

        public Criteria andAuthroledateNotBetween(Date value1, Date value2) {
            addCriterion("AuthRoleDate not between", value1, value2, "authroledate");
            return (Criteria) this;
        }

        public Criteria andAuthrolestateIsNull() {
            addCriterion("AuthRoleState is null");
            return (Criteria) this;
        }

        public Criteria andAuthrolestateIsNotNull() {
            addCriterion("AuthRoleState is not null");
            return (Criteria) this;
        }

        public Criteria andAuthrolestateEqualTo(Integer value) {
            addCriterion("AuthRoleState =", value, "authrolestate");
            return (Criteria) this;
        }

        public Criteria andAuthrolestateNotEqualTo(Integer value) {
            addCriterion("AuthRoleState <>", value, "authrolestate");
            return (Criteria) this;
        }

        public Criteria andAuthrolestateGreaterThan(Integer value) {
            addCriterion("AuthRoleState >", value, "authrolestate");
            return (Criteria) this;
        }

        public Criteria andAuthrolestateGreaterThanOrEqualTo(Integer value) {
            addCriterion("AuthRoleState >=", value, "authrolestate");
            return (Criteria) this;
        }

        public Criteria andAuthrolestateLessThan(Integer value) {
            addCriterion("AuthRoleState <", value, "authrolestate");
            return (Criteria) this;
        }

        public Criteria andAuthrolestateLessThanOrEqualTo(Integer value) {
            addCriterion("AuthRoleState <=", value, "authrolestate");
            return (Criteria) this;
        }

        public Criteria andAuthrolestateIn(List<Integer> values) {
            addCriterion("AuthRoleState in", values, "authrolestate");
            return (Criteria) this;
        }

        public Criteria andAuthrolestateNotIn(List<Integer> values) {
            addCriterion("AuthRoleState not in", values, "authrolestate");
            return (Criteria) this;
        }

        public Criteria andAuthrolestateBetween(Integer value1, Integer value2) {
            addCriterion("AuthRoleState between", value1, value2, "authrolestate");
            return (Criteria) this;
        }

        public Criteria andAuthrolestateNotBetween(Integer value1, Integer value2) {
            addCriterion("AuthRoleState not between", value1, value2, "authrolestate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}